package com.md.domain.repository;

import com.md.base.BaseRepository;
import com.md.domain.model.po.RoleApiPO;

import java.util.List;

/**
 * @author 刘骄阳
 * @date 5/3/25 2:14 pm
 **/
public interface RoleApiRepository extends BaseRepository<RoleApiPO> {
  Integer checkPermission(Long userId, Long apiId);

  void delRoleApiLink(List<Long> roleIdList, List<Long> delApiIdList, List<Long> moduleIdList);

  void updateTypeByIdList(List<Long> updateRoleApiIdList, Integer type);

  List<RoleApiPO> selectRoleApi(Long roleId);

}
